//Components.utils.import("resource://weave/service.js");
Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
Components.utils.import("resource://services-sync/util.js");
Components.utils.import("resource://services-sync/engines.js");
Components.utils.import("resource://mailnews-sync/engines/mailnews.js");

let MailNews = {
  init: function () {
    try {
      Engines.register(MailNewsEngine);
    }
    catch(e) {
     alert(e.toString());
    }   	
  }
}

window.addEventListener('load', MailNews.init, false);
